package com.example.message_queue.common;

import com.example.message_queue.mqserver.core.BasicProertirs;

import java.io.IOException;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:TQ02
 * Data:2024-04-04
 * Time:10:58
 * Text：
 */
@FunctionalInterface
public interface Consumer {
    //投递，每次服务器收到消息，调用
    void handleDelivery(String consumerTag, BasicProertirs basicProertirs,byte[] body) throws MqException, IOException;


}
